import request from '@/utils/request.js';

// 获取投票list
export const getVoteList = (data) => {
	return request({
		url: 'village/together/list',
		method: 'GET',
		data
	})

}
// 投票详情
export const getVoteDetails = (data) => {
	return request({
		url: `village/together/${data}/lists`,
		method: 'GET',

	})

} 
// 投票
export const getnewVote = (data) => {
	return request({
		url: 'village/together/add/newVote',
		method: 'POST',
		data
	})

} 
// 查询投票信息
export const getVoteListoption = (data) => {
	return request({
		url: 'village/together/get/vote/list',
		method: 'GET',
		data
	})

} 